<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/29
 * Time: 13:29
 */
namespace wechatpay\includes;



class OrderClass extends BaseClass
{
    public $filed;

    function __construct()
    {


        $this->filed = GetFiled("vmp_order");
        exit();
    }

    public function save()

    {

        if (ObjectSqlSave($this->filed, "vmp_order")) {
            return true;
        } else {
            return false;
        }
    }

    public function FindById($id)
    {
        $this->filed->id = $id;
        $ret = ObjectSqlLoad($this->filed, "vmp_order");
        return $ret;
    }


}